// 后端返回的字典数据接口(比如省市区等等)
import request from '@/utils/request'

//营销活动搜索接口
export function getKeyWord(data) {
  return request({
    url: '/marketing/activity/query_list',
    method: 'post',
    data,
  })
}

//营销活动新增接口
export function getKeyWordAddForm(data) {
  return request({
    url: '/marketing/activity/add_item',
    method: 'post',
    data,
  })
}

//营销活动编辑接口
export function getKeyWordEditForm(data) {
  return request({
    url: '/marketing/activity/edit_item',
    method: 'post',
    data,
  })
}
//营销活动删除接口
export function delForm(id) {
  return request({
    url: '/marketing/activity/del_item',
    method: 'post',
    data: {
      id,
    },
  })
}

//关键词搜索接口
export function queryKeyWordForm(data) {
  return request({
    url: '/marketing/keywords/query_list',
    method: 'post',
    data,
  })
}
//关键词新增接口
export function addKeyWordForm(data) {
  return request({
    url: '/marketing/keywords/add_item',
    method: 'post',
    data,
  })
}
//关键词修改接口
export function editKeyWordForm(data) {
  return request({
    url: '/marketing/keywords/edit_item',
    method: 'post',
    data,
  })
}
//关键词删除接口
export function delKeyWordForm(id) {
  return request({
    url: '/marketing/keywords/del_item',
    method: 'post',
    data: {
      id,
    },
  })
}
//导入关键词接口
export function comeInKeyWordForm(data) {
  return request({
    url: '/marketing/keywords/batch_item',
    method: 'post',
    data,
  })
}

//国家方案列表搜索接口
export function getCountryActivityQueryList(data) {
  return request({
    url: '/marketing/country_activity/query_list',
    method: 'post',
    data,
  })
}
//国家方案列表新增接口
export function getCountryActivityAddList(data) {
  return request({
    url: '/marketing/country_activity/add_item',
    method: 'post',
    data,
  })
}
//国家方案列表编辑接口
export function getCountryActivityEditList(data) {
  return request({
    url: '/marketing/country_activity/edit_item',
    method: 'post',
    data,
  })
}
//国家方案列表编辑接口
export function delCountryActivityEditList(id) {
  return request({
    url: '/marketing/country_activity/del_item',
    method: 'post',
    data: {
      id,
    },
  })
}
